MultiColumnFilterProxyModel
Base classes
| Name | Children | Inherits |
|---|---|---|
| SortFilterProxyModel prettyqt.core.sortfilterproxymodel Support for sorting and filtering data passed between another model and a view. |
â‹” Inheritance diagram
graph TD
3678980456["itemmodels.MultiColumnFilterProxyModel"]
2548039224["core.SortFilterProxyModel"]
2431222121["core.AbstractProxyModelMixin"]
3882849576["core.AbstractItemModelMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
153997648["QtCore.QSortFilterProxyModel"]
3989152870["QtCore.QAbstractProxyModel"]
1898060022["QtCore.QAbstractItemModel"]
3984060476["QtCore.QObject"]
37984305["Shiboken.Object"]
2548039224 --> 3678980456
2431222121 --> 2548039224
3882849576 --> 2431222121
3227531497 --> 3882849576
2751680898 --> 3227531497
153997648 --> 2548039224
3989152870 --> 153997648
1898060022 --> 3989152870
3984060476 --> 1898060022
37984305 --> 3984060476
2751680898 --> 37984305
🛈 DocStrings
Bases: SortFilterProxyModel
A SortFilterProxyModel which filters based on multiple columns in one go.
This proxy uses seperate search term / values for each column in order to filter the source model, thus avoiding to layer proxy models in case you want to filter based on several columns. That way it is less demanding since filtering for all columns is done in one go.
This model is used by the FilterHeader widget in order to filter a table in one go, avoiding the need to layer multiple proxy models.
Example
proxy = itemmodels.MultiColumnFilterProxyModel()
proxy.set_source_model(model)
table.set_model(proxy)
table.show()